import axios from "@/utils/request";

//获取当前用户发表的问题
export function getProblemListByUserId(userId: number) {
    return axios({
        url: "/answer/problem/web/getProblemListByUserId/" + userId,
        method: "get"
    })
}

//上传问题的用户是否解决问题(用户个人中心页面)
export function isSolveProblem(userId: number, problemId: number) {
    return axios({
        url: `/answer/problem/web//isSolveProblem/${userId}/${problemId}`,
        method: "put"
    })
}